package com.cdivtc.management;

public enum ErrorCode {
    SUCCESS(200, "成功"),
    SERVICE_CURRENTLY_UNAVAILABLE(1, "服务不可用"),
    UPLOAD_FAIL(2, "图片上传失败"),
    INSUFFICIENT_USER_PERMISSIONS(3, "用户权限不足"),
    NOT_LOGGED_IN(4, "用户未登陆"),
    INVALID_METHOD(5, "不存在的方法名"),
    INVALID_FORMAT(6, "无效数据格式"),
    PARAMETER_ERROR(7, "参数错误"),
    SERVER_ERROR(500, "服务器错误"),
    LANDING_SUCCESSFULLY(9, "登陆失败"),
    NO_DATA(8, "没有查询到数据"),
    ;



    private int code;
    private String msg;

    ErrorCode() {

    }

    ;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }


}
